package com.qf.day03.loop;

/**
 * 打印倒三角
 */
public class Demo05 {
    public static void main(String[] args) {
        int rows = 5;
        lineStar(rows);
    }

    private static void lineStar(int rows) {
        for (int i = 0; i <= rows; i++) {
            for (int j = 0; j < 6 - i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
